package cn.itsource.pay.domain;

import cn.itsource.basic.domain.BaseDomain;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import javax.persistence.Table;
import java.math.BigDecimal;
import java.util.Date;

@Data
@Table(name = "t_order_adopt")
public class OrderAdopt extends BaseDomain {
    private String digest;
    private Integer state;
    private BigDecimal price;
    private String orderSn;
    private String paySn;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date lastPayTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date lastConfirmTime;
    private Long petId;
    private Long userId;
    private Long shopId;
    private Long addressId;
}
